﻿<!DOCTYPE html>
<html>
<head>
<title>丸子妈妈</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<script src="res/jquery.js"></script>
<script src="fun.js"></script>
<link href="style.css" rel="stylesheet" />
<link href="animate.css" rel="stylesheet" />
</head>
<body>

<style>
	.final{position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-image: url(img/final/final_bg.jpg);}
	.final_logo{position: absolute; left: 18px; top: 18px; width: 149px;}
	.final_slogan{position: absolute; left: 18px; top: 80px; width: 48px; height: 0; overflow: hidden; animation-name: slogan_show;animation-timing-function: linear;}
	.final_text{position: absolute; top: 84px; width: 20px; height: 0; overflow: hidden; animation-timing-function: linear;}
	.final_text_1{left: 150px; animation-name: text_show_1;}
	.final_text_2{left: 116px; animation-name: text_show_2;}
	.final_text_3{left: 82px; animation-name: text_show_3;}
	.final_share_box{position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,.8); display: none;}
	.final_share_box.share_show{display: block;}
	.final_share{position: absolute; width: 198px; top: 16px; right: 26px; animation: share_anim 2s ease-in-out infinite;}
	.final_btn{position: absolute; bottom: 28px; width: 150px;}
	.final_btn_1{left: 4%;}
	.final_btn_2{right: 4%;}
	.final_code{position: absolute; bottom: 70px; width: 130px; height: 0; right: 4%; margin-right: 10px; overflow: hidden; transition: .3s;}
	.final_code.code_show{height: 130px;}
	.black{position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: #000; overflow: hidden; animation-name: black_hidden;}
@keyframes share_anim{
	50% { transform: translateY(-4px); }
}
@keyframes black_hidden{
	0%   { opacity: 1; width: 100%; height: 100%; }
	98%  { opacity: 0; width: 100%; height: 100%; }
	100% { opacity: 0; width: 0; height: 0; }
}
@keyframes text_show_1{
	from { height: 0; }
	to   { height: 190px; }
}
@keyframes text_show_2{
	from { height: 0; }
	to   { height: 218px; }
}
@keyframes text_show_3{
	from { height: 0; }
	to   { height: 190px; }
}
@keyframes slogan_show{
	from { height: 0; }
	to   { height: 316px; }
}
</style>

<script>
$(function(){
	var layout = [
		".black",
		".final_text_1",
		".final_text_2",
		".final_text_3",
		".final_slogan",
	];
	var timeDelay = [  2,.1,.4,.4, .2 ];
	var timeDurat = [ .5, 2, 2, 2,1.5 ];
	addAnimate(timeDelay,timeDurat,layout);
	
	$(".final_btn_2").click(function(){
		//window.parent.codeShow();
	})
	$(".final_btn_1").click(function(){
		$(".final_share_box").addClass("share_show");
	})
	$(".final_share_box").click(function(){
		$(this).removeClass("share_show");
	})
})
$(document).ready(function(){
	window.setTimeout(window.parent.codeShow,2500);

});
</script>

<div class="final">
	<div class="final_logo"><img src="img/final/final_logo.png" /></div>
	<div class="final_text final_text_1"><img src="img/final/final_text_1.png" /></div>
	<div class="final_text final_text_2"><img src="img/final/final_text_2.png" /></div>
	<div class="final_text final_text_3"><img src="img/final/final_text_3.png" /></div>
	<div class="final_slogan"><img src="img/final/final_slogan.png" /></div>
	<div class="final_btn final_btn_1"><img src="img/final/final_btn_1.png" /></div>
	<div class="final_btn final_btn_2"><img src="img/final/final_btn_2.png" /></div>
	<div class="final_share_box">
		<div class="final_share"><img src="img/final/final_share.png" /></div>
	</div>
	<div class="black"></div>
</div>

</body>
</html>